#pragma once
#include <Windows.h>
#include <Ole2.h>
#include "CComm.h"
class CEnumFormatEtc : public IEnumFORMATETC, public CRefCount
{
private:
	LPFORMATETC m_pStrFE;
	ULONG m_iCur;
	ULONG m_cItems;

public:
	CEnumFormatEtc(const LPFORMATETC pFE,int numberItems);
	virtual ~CEnumFormatEtc(void);

	//BOOL FInit(HWND);

	//IUnknown members
	virtual HRESULT __stdcall QueryInterface(REFIID iid, LPVOID* ppvid);
	virtual ULONG __stdcall AddRef();
	virtual ULONG __stdcall Release();

	//IEnumFORMATETC members
	virtual HRESULT __stdcall Next(ULONG, LPFORMATETC, ULONG*);
	virtual HRESULT __stdcall Skip(ULONG);
	virtual HRESULT __stdcall Reset(void);
	virtual HRESULT __stdcall Clone(IEnumFORMATETC**);
};